<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
     <div class="header_bj">
	     <div class="container containerTab">
	     	<!-- <div class="tableTabDiv">
				<ul id="navTab" class="nav nav-tabs navClear">
					<li class="active"><a href="#_pageMain" data-toggle="tab" onclick="showPageMain(this)">主表单</a></li>
					<li><a href="#_pageDiagram" data-toggle="tab" onclick="showPageDiagram(this)">流程图</a></li>
				</ul>
			</div> -->
			<div class="row rowbtn-big">
			  <ul>
	              <li class="bc"><a href="javascript:void(0)" onclick="doSave()"><img src="<%= resloc %>/static/formskins/default/css/images/head_bc.png" width="13" height="13" />保存</a></li>
	              <li><a href="javascript:void(0)" onclick="doReset()"><img src="<%= resloc %>/static/formskins/default/css/images/head_zx.png" width="13" height="13" />重置</a></li>
	              <li><a href="javascript:void(0)" onclick="doClose()"><img src="<%= resloc %>/static/formskins/default/css/images/head_gb.png" width="13" height="13" />关闭</a></li>
	              <li id="header_btn_helper" style="display:none"><a href="javascript:void(0)" onclick="doHelp()"><img src="<%= resloc %>/static/formskins/default/css/images/head_help.png" width="13" height="13" />帮助</a></li>
	            </ul>
			</div>
			<!-- 小屏幕显示 -->
			<div class="row btn-group rowbtn-small">
			   <button type="button" class="btn btn-default dropdown-toggle" 
			      data-toggle="dropdown">
			      操作  <span class="caret"></span>
			   </button>
			   <ul class="dropdown-menu" role="menu">
			      <li class="bc"><a href="javascript:void(0)" onclick="doSave()"><img src="<%= resloc %>/static/formskins/default/css/images/head_bc.png" width="13" height="13" />保存</a></li>
	              <li class="tj"><a href="javascript:void(0)" onclick="doReset()"><img src="<%= resloc %>/static/formskins/default/css/images/head_zx.png" width="13" height="13" />重置</a></li>
	              <li><a href="javascript:void(0)" onclick="doClose()"><img src="<%= resloc %>/static/formskins/default/css/images/head_gb.png" width="13" height="13" />关闭</a></li>
	              <li id="header_btn_helper" style="display:none"><a href="javascript:void(0)" onclick="doHelp()"><img src="<%= resloc %>/static/formskins/default/css/images/head_help.png" width="13" height="13" />帮助</a></li>
			   </ul>
			</div>
	     </div>
     </div>
     
<script>
function showPageMain(tabObj) {
    $("#_pageMain").show();
    $("#_pageDiagram").hide();
    $(".fy").show();
}

function showPageDiagram(tabObj) {
    $("#_pageMain").hide();
    $("#_pageDiagram").show();
    $(".fy").hide();
}

function doReset() {
	console.log("datactx.b=\n\n"+JSON.stringify(datactx.b));
	fmdf.getData(fmdCtx, fmdCtx, "test_tsid");
}

function doSave() {
	console.log("datactx.b=\n\n"+JSON.stringify(datactx.b));
	fmdf.saveData(fmdCtx, "test_tsid");
}
function doClose() {
	if (window.opener) {
		if (navigator.appName == 'Microsoft Internet Explorer') {
			window.opener = 'whatever';
			window.open('', '_parent', '');
			window.close()
		} else {
			window.open('', '_self', '');
			window.close()
		}
	} else {
		if (navigator.appName == 'Microsoft Internet Explorer') {
			window.opener = null;
			window.open('', '_self', '');
			window.close()
		} else {
			window.open('', '_parent', '');
			self.close()
		}
	}
}
</script>